package learnMethod

import "fmt"

type Student struct {
	name string
	age  int
}

type primarySchool struct {
	Student
	StudentType string
}

func (p *primarySchool) SetName(name string) {
	p.name = name
}
func (p *primarySchool) GetName() string {
	return p.name
}
func (p *primarySchool) SetAge(age int) {
	p.age = age
}
func (p *primarySchool) GetAge() int {
	return p.age
}

func (p *primarySchool) String() string {
	pStr := fmt.Sprintf("name=%v,age=%v,StudentType=%v\n", p.name, p.age, p.StudentType)
	return pStr
}
